<div class="container_16 ">
    <div class="grid_12 push_1 containerHeight">
        <h2><?= lang('tituloAmorti'); ?></h2>
        <table id="tablaAmortizacion">
            <thead>
                <tr>
                    <td width="5%">Nº</td>
                    <td><?= lang('deudaAnterior') ?></td>
                    <td><?= lang('intrs') ?></td>
                    <td><?= lang('amortiza') ?></td>
                    <td><?= lang('nuevaeuda') ?></td>
                </tr>
            </thead>
            <tbody>
                <?php for ($index = 1; $index <= count($array); $index++) {
                ?>
                    <tr>
                        <td><center><?= $index ?></center></td>
                        <td><?= $array[$index]['deuteAnterior'] ?></td>
                        <td><?= $array[$index]['interes'] ?></td>
                        <td><?= $array[$index]['amortizacion'] ?></td>
                        <td><?= $array[$index]['subTotal'] ?></td>
                    </tr>
                <?php } ?>
            </tbody>
        </table>
    </div>
</div>
<script>
    $(document).ready(function () {
        $('#tablaAmortizacion').dataTable({
            "bJQueryUI":true,
            "bInfo":false,
            "bSort":false,
            "bAutoWidth":false,
            "bLengthChange":false,
            "iDisplayLength":12,
            "oLanguage": {
                "sUrl": "<?= lang('datatables_lng') ?>"
            }
        });
    });
</script>
<style>
    .dataTables_filter{
        display: none;
    }
</style>
